package com.gome.ocean.dao.datax;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.datasource.DataSourceAuthorityOAApplyBean;

/**
 * @author zhangguoqing 2016年10月19日 下午1:55:07
 * @since 5.0.0
 */
@Repository("dataSourceOAAuthApplyDAO")
public interface DataSourceOAAuthApplyDAO {

    public void insert(DataSourceAuthorityOAApplyBean applyBean);

    public void updateById(DataSourceAuthorityOAApplyBean applyBean);

    public DataSourceAuthorityOAApplyBean getBeanByMap(Map<String, Object> map);

    public List<DataSourceAuthorityOAApplyBean> getBeanListsByMap(Map<String, Object> map, RowBounds rowBounds);

    public List<DataSourceAuthorityOAApplyBean> getBeanListsByProjectGroup(@Param("projects") List<String> projects,
                                                                           RowBounds rowBounds);
    
    public List<DataSourceAuthorityOAApplyBean> getAllDataSource(RowBounds bounds);
    
    public void deleteBeanById(@Param("id") Long id);
}
